home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / makefile.amg < prev    next >
Makefile  |  1998-12-02  |  6KB  |  154 lines

  1. # Makefile for SAS/C 6.1 or better on the Amiga
  2. #
  3. # $Id: makefile.amg,v 1.29 1998/04/14 00:15:50 drd Exp $
  4. #
  5. #
  6.  
  7. CC = sc
  8.  
  9. # Remove 'MATH=IEEE' if you don't want to use the better Commodore
  10. # math-routines. If you do so, you'll have to change 'scmieee.lib'
  11. # to 'scm.lib' in the gnuplot and bf_test target lines below.
  12. # I am guessing the syntax here : I want to define GP_INLINE=__inline.
  13. # If you have SAS/C 6.57 or newer, you may wish to disable warning 317
  14. # too. Just add it in the COPTS line.
  15. OFLAGS = opt
  16. DEFS   = def=AMIGA_SC_6_1 def=ANSI_C def=HAVE_SYS_STAT_H def=HAVE_STRNICMP def=HAVE_GETCWD def=PIPES def=GP_INLINE=__inline
  17. COPTS  = idir=term data=f math=i ign=304+306 #noerrhigh #errrexx
  18. DEBUG  = # Will be dbg=sf when called with smake -f makefile.amg debug
  19. CFLAGS = $(COPTS) $(DEFS) $(OFLAGS) $(DEBUG)
  20. LNDBG  = # Will be addsym when called with smake -f makefile.amg debug
  21.  
  22. # The directories where gnuplot and gnuplot.gih go:
  23.  
  24. DEST     = C:
  25. HELPDEST = S:
  26.  
  27. # To simplify the handling of files that have grown so large that they
  28. # must be compiled with the code=far option, the rules below have been
  29. # set up. Now, if a file grows large, you only have to change its
  30. # extension from .o to .oo, and the file will be compiled correctly.
  31. # This must be done in the OBJS-variable below and in the corresponding 
  32. # dependency-rule near the end of the file.
  33.  
  34.  
  35. # Normal compilation rule
  36. .c.o:
  37.     $(CC) $(CFLAGS) objname=$@ $<
  38.  
  39. # Compilation rule for large files
  40. .c.oo:
  41.     $(CC) $(CFLAGS) code=f objname=$@ $<
  42.  
  43. OBJS = alloc.o amiga.o binary.o bitmap.o command.o contour.o datafile.o \
  44.        eval.o fit.o graph3d.o graphics.oo help.o hidden3d.o internal.o \
  45.        interpol.o matrix.o misc.o parse.o plot.o plot2d.o plot3d.o scanner.o \
  46.        set.oo show.o specfun.o standard.o stdfn.o term.oo time.o util.o \
  47.        util3d.o version.o
  48.  
  49. CSOURCE1 = alloc.c bf_test.c binary.c bitmap.c command.c set.c show.c 
  50. CSOURCE2 = help.c graphics.c graph3d.o internal.c 
  51. CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c scanner.c \
  52.     standard.c stdfn.c 
  53. CSOURCE4 = bitmap.c term.c util.c util3d.c version.c interpol.c fit.c matrix.c
  54. CSOURCE5 = term/ai.trm term/amiga.trm term/aed.trm term/atariaes.trm \
  55.     term/atarivdi.trm term/cgi.trm term/corel.trm \
  56.     term/djsvga.trm term/dumb.trm term/dxf.trm term/dxy.trm \
  57.     term/debug.trm term/eepic.trm term/epson.trm term/excl.trm \
  58.     term/fig.trm term/hp26.trm term/hp2648.trm term/hpgl.trm  \
  59.     term/hpljii.trm term/metafont.trm\
  60.     term/apollo.trm term/gpr.trm term/hppj.trm term/compact.c 
  61. CSOURCE6 = term/impcodes.h term/imagen.trm term/next.trm term/object.h \
  62.     term/iris4d.trm term/kyo.trm term/latex.trm term/mif.trm \
  63.     term/pbm.trm term/pc.trm 
  64. CSOURCE7 = term/post.trm term/pstricks.trm term/qms.trm term/regis.trm \
  65.     term/rgip.trm term/sun.trm\
  66.     term/t410x.trm term/tek.trm term/texdraw.trm\
  67.     term/tgif.trm term/tpic.trm \
  68.     term/unixpc.trm term/unixplot.trm \
  69.     term/v384.trm term/vws.trm term/x11.trm term/xlib.trm
  70. CSOURCE8 = contour.c specfun.c amiga.c
  71. CORETERM = $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  72.  
  73.  
  74. all: gnuplot demo/bf_test
  75.  
  76. gnuplot: $(OBJS)
  77.     slink from lib:c.o $(OBJS) to gnuplot\
  78.     lib lib:scmieee.lib lib:scnb.lib $(LNDBG)
  79.  
  80. demo/bf_test: bf_test.o binary.o alloc.o
  81.     slink from lib:c.o bf_test.o binary.o alloc.o to demo/bf_test\
  82.     lib lib:scmieee.lib lib:scnb.lib
  83.     @echo "*N*NRun bf_test in demo subdirectory to make binary demo files*N"
  84.  
  85. docs: docs/gnuplot.doc docs/doc2gih docs/doc2tex docs/doc2ms docs/checkdoc
  86.     docs/doc2gih <docs/gnuplot.doc >docs/gnuplot.gih
  87.  
  88. docs/doc2gih: docs/doc2gih.c docs/termdoc.c
  89.     $(CC) $(CFLAGS) idir= link to docs/doc2gih docs/doc2gih.c docs/termdoc.c
  90.  
  91. docs/doc2tex: docs/doc2tex.c docs/allterm.h docs/termdoc.c
  92.     $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= link to docs/doc2tex docs/doc2tex.c docs/termdoc.c
  93.  
  94. docs/doc2ms: docs/doc2ms.c docs/allterm.h docs/termdoc.c
  95.     $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= link to docs/doc2ms docs/doc2ms.c docs/termdoc.c
  96.  
  97. docs/checkdoc: docs/checkdoc.c docs/allterm.h docs/termdoc.c 
  98.     $(CC) $(CFLAGS) def=ALL_TERM_DOC idir= link to docs/checkdoc docs/checkdoc.c docs/termdoc.c
  99.  
  100. docs/allterm.h: $(CORETERM)
  101.     join term/\#?.trm as docs/allterm.h
  102.  
  103.  
  104. alloc.o: alloc.c plot.h
  105. amiga.o: amiga.c
  106. bf_test.o: bf_test.c
  107. binary.o: binary.c plot.h
  108. bitmap.o: bitmap.c bitmap.h plot.h
  109. command.o: command.c plot.h setshow.h help.h
  110. contour.o: contour.c plot.h
  111. datafile.o: datafile.c plot.h fnproto.h binary.h setshow.h
  112. eval.o: eval.c plot.h
  113. fit.o: fit.c fit.h matrix.h plot.h
  114. graph3d.o: graph3d.c plot.h setshow.h
  115. graphics.oo: graphics.c plot.h setshow.h
  116. help.o: help.c plot.h help.h
  117. hidden3d.o: hidden3d.c plot.h setshow.h
  118. internal.o: internal.c plot.h
  119. interpol.o: interpol.c plot.h setshow.h
  120. matrix.o: matrix.c matrix.h fit.h
  121. misc.o: misc.c plot.h setshow.h help.h
  122. parse.o: parse.c plot.h help.h
  123. plot.o: plot.c plot.h setshow.h
  124. plot2d.o: plot2d.c plot.h setshow.h fit.h binary.h help.h
  125. plot3d.o: plot3d.c plot.h setshow.h binary.h help.h
  126. scanner.o: scanner.c plot.h
  127. set.oo: set.c plot.h setshow.h
  128. show.o: show.c plot.h setshow.h
  129. specfun.o: specfun.c plot.h
  130. standard.o: standard.c plot.h
  131. stdfn.o: stdfn.c stdfn.h
  132. term.oo: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  133. time.o: time.c plot.h setshow.h
  134. util.o: util.c plot.h
  135. util3d.o: util3d.c plot.h setshow.h
  136. version.o: version.c
  137.  
  138.  
  139. clean:
  140.     @-delete $(OBJS) bf_test.o binary.o quiet
  141.     @-delete docs/\#?.o docs/\#?.lnk quiet
  142.  
  143. veryclean: clean
  144.     @-delete demo/binary[1-3] fitdemo/fit.log quiet
  145.     @-delete bf_test demo/fit.log gnuplot docs/gnuplot.gih quiet
  146.     @-delete docs/doc2gih docs/doc2tex docs/doc2ms docs/checkdoc quiet
  147.  
  148. install: gnuplot docs/gnuplot.gih
  149.     copy docs/gnuplot.gih $(HELPDEST)
  150.     copy gnuplot $(DEST)
  151.  
  152. debug:
  153.     smake -f makefile.amg DEBUG=dbg=sf LNDBG=addsym OFLAGS= all
  154.